//
//  NewRecordingAudio.h
//  TutorialsModule
//
//  Created by Augusto Guido on 14/10/09.
//  Copyright 2009 Moove-IT. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <AVFoundation/AVAudioRecorder.h>
#import <AVFoundation/AVAudioSession.h>
#import <AVFoundation/AVAudioSettings.h>
#import <AVFoundation/AVAudioPlayer.h>

@interface NewRecordingAudio : UIViewController <AVAudioSessionDelegate, AVAudioRecorderDelegate> {
	IBOutlet UIButton *recordOrStopButton;
	IBOutlet UIButton *playRecordedButton;
	NSURL *soundFileURL;
	BOOL recording;
	BOOL playing;
	AVAudioRecorder *soundRecorder;
}

-(IBAction) recordOrStop;
-(IBAction) playRecorded;

@property (nonatomic, retain) NSURL *soundFileURL;
@property (nonatomic, retain) AVAudioRecorder *soundRecorder;
@property BOOL recording;
@property BOOL playing;

@end
